/*
 * main.c
 * Copyright (C) Frank Kurbatsch 2012 <ich@ich>
 *
tetrisfn is free software: you can redistribute it and/or modify it
	under the terms of the GNU General Public License as published by the
	Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	tetrisfn is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
	See the GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License along
	with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*Program closes with a mouse click or keypress */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>


#include "tetris.h"
#include "option.h"
#include "video.h"

int main (int argc, char *argv[])
{
	TFN_Option_t opt;

	TFN_InitLog ();
	TFN_LadeCFG (&opt);

	printf ("Version: %s\n", opt.ver);
	printf ("wbild_x: %d\n", opt.wbild_x);
	printf ("wbild_y: %d\n", opt.wbild_y);
	printf ("wbild_flags: %d\n", opt.wbild_flags);
	printf ("fsbild_x: %d\n", opt.fsbild_x);
	printf ("fsbild_y: %d\n", opt.fsbild_y);
	printf ("fsbild_bpp: %d\n", opt.fsbild_bpp);
	printf ("fsbild_flags: %d\n", opt.fsbild_flags);
	printf ("fps: %d\n", opt.framerate);
	printf ("theme: %s\n", opt.theme);
	printf ("stein_runter_delay: %d\n", opt.stein_runter_delay);
	printf ("stein_linksrechts_delay: %d\n", opt.stein_linksrechts_delay);
	printf ("stein_drehen_delay: %d\n", opt.stein_drehen_delay);
	printf ("key_down: %c\n", opt.brick_down);
	printf ("key_right: %c\n", opt.brick_right);
	printf ("key_left: %c\n", opt.brick_left);
	printf ("key_rotat: %c\n", opt.brick_rotat);
	printf ("key_pause: %c\n", opt.pause);
	printf ("level_points: %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n", opt.lv2_p, opt.lv3_p, opt.lv4_p, opt.lv5_p, opt.lv6_p, opt.lv7_p, opt.lv8_p, opt.lv9_p, opt.lv10_p, opt.lv11_p, opt.lv12_p, opt.lv13_p, opt.lv14_p, opt.lv15_p);
	printf ("level_delay: %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d\n", opt.lv1_d, opt.lv2_d, opt.lv3_d, opt.lv4_d, opt.lv5_d, opt.lv6_d, opt.lv7_d, opt.lv8_d, opt.lv9_d, opt.lv10_d, opt.lv11_d, opt.lv12_d, opt.lv13_d, opt.lv14_d, opt.lv15_d);

TFN_SpeicherCFG(&opt);
	system ("pause");
	return(0);
}

